home *** CD-ROM | disk | FTP | other *** search
- #pragma once
-
- #define BASE_ICON 700
- #define ICON_COUNT 7
-
- #define GO_START_ICON 700
- #define RW_ICON 701
- #define STOP_ICON 702
- #define PLAY_ICON 703
- #define FF_ICON 704
- #define GO_END_ICON 705
- #define LAST_ICON 706
-
- #define GO_START_BUTTON 1
- #define RW_BUTTON 2
- #define STOP_BUTTON 3
- #define PLAY_BUTTON 4
- #define FF_BUTTON 5
- #define GO_END_BUTTON 6
- #define LAST_BUTTON 7
-
- #define STATUS_BOX 7
- #define CLOCK_BOX 8
- #define TAPE_SLOT 9
- #define VCR_BOX 10
-
- #define PROGRESS_1 11
- #define PROGRESS_2 12
- #define PROGRESS_3 13
- #define PROGRESS_4 14
-
- enum {stopped = 0,playing,fastforward,re_wind,gotoend,gotostart};
-
- typedef struct buttons {
- Boolean button[LAST_BUTTON];
- int buttonRNum[LAST_BUTTON];
- } Buttons;
-
- class VCR : public Dlog {
- public:
- Buttons myButtons;
- short vcr_mode;
-
- VCR(void);
- ~VCR(void);
-
- virtual void loadResource( int number); // loads resource and sets number
- virtual int HandleDialogItem(int itemHit, Point thePoint, int thePart);
- virtual void RedrawDialog(void);
- virtual void RedrawButtons(void);
- virtual void ButtonsAndValues(int itemHit);
- virtual void RedrawStatus(void);
- virtual void RedrawTime(void);
- virtual void UpdateProgress(void);
- virtual void DrawAllProgress(int color);
- virtual void ClearAllButtons(void);
-
- private:
- virtual void Draw2Rects2Colors(Rect r1, int color1, Rect r2, int color2);
-
-
- };